package cn.com.sueframe.action;

import java.sql.SQLException;

import cn.com.sueframe.service.DbmsCompanyService;
import cn.com.sueframe.vo.OsArea;


/**
 * 执行业务逻辑
 * 
 * @author anler
 * @create: 2012-8-14
 * 
 */ 
public class DbmsCompanyAction extends BaseActionSupport {
 
  private static final long serialVersionUID = 1L;
  private DbmsCompanyService dbmsCompanyService;
  private OsArea area;
  
  /**
   * 用于测试三框架
   * 
   * @author anler
   * @return String 
   * @create: 2012-8-14
   */
  public String toIndex(){
	  try {
		dbmsCompanyService.addArea(area);
	} catch (SQLException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	  return null;
  }

public DbmsCompanyService getDbmsCompanyService() {
	return dbmsCompanyService;
}

public void setDbmsCompanyService(DbmsCompanyService dbmsCompanyService) {
	this.dbmsCompanyService = dbmsCompanyService;
}

public OsArea getArea() {
	return area;
}

public void setArea(OsArea area) {
	this.area = area;
}

}
